package jspx.example.dao;

import com.github.jspxnet.sober.SoberSupport;
import com.github.jspxnet.sober.annotation.SqlMap;
import com.github.jspxnet.sober.enums.QueryModelEnumType;
import jspx.example.conf.Persion;
import jspx.example.table.Employee;

import java.util.List;
import java.util.Map;


public interface IocDemoDAO extends SoberSupport {
    String getPersionJson(Persion persion);


    @SqlMap
    List<Employee> getList(Map<String, Object> valueMap, int currentPage, int count, Class<?> cls);

    List<Employee> getEmployeeList(Map<String, Object> valueMap, int currentPage, int count) throws Exception;

    long getEmployeeListCount(Map<String, Object> valueMap);

    @SqlMap(intercept = "jspx.example.interceptor.db.IntDemoInterceptor",mode = QueryModelEnumType.SINGLE)
    long getEmployeeListSing(Map<String, Object> valueMap);

    @SqlMap(intercept = "jspx.example.interceptor.db.IntDemoInterceptor",mode = QueryModelEnumType.SINGLE)
    long getEmployeeListSing2(Map<String, Object> valueMap);
}
